






	<div class="footer">
		<div class="spons-bl">
			<div class="fix-bl">
				<ul id="mycarousel" class="jcarousel-skin-tango">
				
				<?  $idEvent = 8;
				/*!!!!!*/define('DB_PREFIX', 'prprof_');
				require_once(ABSPATH_PRPROF . 'system/classes/Service/Database.php'); // подключаем класс для работы с инфопартнерами
				require_once(ABSPATH_PRPROF . 'system/classes/Service/Pager.php'); // подключаем класс для работы с инфопартнерами
				require_once(ABSPATH_PRPROF . 'system/classes/Companies.php'); // подключаем класс для работы с инфопартнерами
				$objCompanies = new Companies();
				
				$arrPartnersWithStatus = $objCompanies->getPartnersWithStatusByEventId($idEvent);
				$arrPartnersWithOutStatus = $objCompanies->getPartnersWithOutStatusByEventId($idEvent);
				
				$sizePartnersWithStatus = sizeof($arrPartnersWithStatus);
				$sizePartnersWithOutStatus = sizeof($arrPartnersWithOutStatus);				
				
				
				for ($i = 0; $i < $sizePartnersWithStatus; $i++){
					$arrPartner = $arrPartnersWithStatus[$i];
			
					if (strpos($arrPartner['site'], 'http://') === false){
						$arrPartner['site'] = 'http://' . $arrPartner['site']; // добавляем http:// в начало строки
					}
					
					?>
					<li>
						<span><?=$arrPartner['status']?></span>
						<a href="<?=$arrPartner['site']?>" title="<?=$arrPartner['name']?>"><img src="<?=W_ABSPATH_PRPROF_M?>images/companies/w_150_<?=$arrPartner['id']?>.jpg" alt="<?=$arrPartner['name']?>" alt="<?=$arrPartner['name']?>" /></a>
					</li>
				<?}
				
				for ($i = 0; $i < $sizePartnersWithOutStatus; $i++){
					$arrPartner = $arrPartnersWithOutStatus[$i];
			
					if (strpos($arrPartner['site'], 'http://') === false){
						$arrPartner['site'] = 'http://' . $arrPartner['site']; // добавляем http:// в начало строки
					}
					
					?>
					<li>
						<a href="<?=$arrPartner['site']?>" title="<?=$arrPartner['name']?>"><img src="<?=W_ABSPATH_PRPROF_M?>images/companies/w_150_<?=$arrPartner['id']?>.jpg" alt="<?=$arrPartner['name']?>" alt="<?=$arrPartner['name']?>" /></a>
					</li>
				<?}?>			
				</ul>
			</div>
		</div><!-- .spons-bl -->	
	</div>